package ${package}.enums;

import com.google.common.base.Objects;

/**
 */
public enum  CategoryRemark {

    GENERAL(0, ""),
    BAOWEN(1, "官方保温箱优先");
    private Integer value;

    private String desc;

    CategoryRemark(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return this.value;
    }

    public String desc() {
        return this.desc;
    }

    public static CategoryRemark from(Integer value) {
        for (CategoryRemark t : CategoryRemark.values()) {
            if (Objects.equal(t.value, value)) {
                return t;
            }
        }
        throw new IllegalArgumentException("非法的状态值");
    }
}
